package com.lino.design;

/**
 * @description: 单点登录装饰者抽象类
 * @author: lingjian
 * @createDate: 2022/12/22 10:23
 */
public abstract class SsoDecorator implements HandleInterceptor {

    private HandleInterceptor handleInterceptor;

    public SsoDecorator() {
    }

    public SsoDecorator(HandleInterceptor handleInterceptor) {
        this.handleInterceptor = handleInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handleInterceptor.preHandle(request, response, handler);
    }
}
